<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition template="./detailsClient.xhtml">
            <ui:define name="partieGauche">

                <f:view>
                    <h:form>



                        <h:outputText style="color: burlywood" value="Solde du compte: #{compteBancaireMBean.detailsCompteEpargne.soldeCompte} €"/>



                        <br></br>
                        <br></br>

                        <p:panel id="panel" header="Détails des operations d'un compte courant">  


                            <p:dataTable value="#{compteBancaireMBean.operationCompteEpargne}"  widgetVar="detailOTable" var="item" paginator="true" rows="5"
                                         paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
                                         rowsPerPageTemplate="5,10,15" 
                                         lazy="true">
                                <p:column>
                                    <f:facet name="header">
                                        <h:outputText value="Date"/>
                                    </f:facet>
                                    <h:outputText value="#{item.dateO}">
                                        <f:convertDateTime pattern="dd/MM/yyyy" />
                                    </h:outputText>
                                </p:column>
                                <p:column>
                                    <f:facet name="header">
                                        <h:outputText value="Description"/>
                                    </f:facet>
                                    <h:outputText value="#{item.description}"/>
                                </p:column>
                                <p:column style="text-align: center">
                                    <f:facet name="header">
                                        <h:outputText value="Montant"/>
                                    </f:facet>
                                    <h:outputText value="#{item.montantO} €"/>
                                </p:column>
                            </p:dataTable>


                        </p:panel>  


                    </h:form>
                </f:view>

            </ui:define>

        </ui:composition>

    </body>

</html>
